-- GENERATED SPELL FOR [Darrowshire Defender] --


function spell0_10948(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(12169,pUnit)
pUnit:RegisterEvent('Sorts_10948', 5272, 1)
end

function spell1_10948(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10948', 612, 1)
end

function Sorts_10948(pUnit, Event)
local choix_sorts_10948 = math.random(0, 1)
if choix_sorts_10948 == 0 then
pUnit:RegisterEvent('spell0_10948', 1, 1)
end
if choix_sorts_10948 == 1 then
pUnit:RegisterEvent('spell1_10948', 1, 1)
end
end

function mob10948_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10948', math.random(1500, 3000), 1)
end

function mob10948_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10948_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10948_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10948, 1, 'mob10948_Action')
RegisterUnitEvent(10948, 2, 'mob10948_Leave')
RegisterUnitEvent(10948, 3, 'mob10948_Kill')
RegisterUnitEvent(10948, 4, 'mob10948_Die')
